<template>
	<div>
		<p>
			<input type="text" placeholder="账号">
		</p>
		<p>
			<input type="password" placeholder="密码">
		</p>
		<button @click="login">登录</button>
	</div>
</template>

<script>
	export default {
		name: "comLogin",
		methods: {
			login() {
				localStorage.setItem("isLogin", true);
			}
		},
	}
</script>

<style>
</style>
